if(SCREEN_WIDTH>=1920){
    var width = $(window).width() - 60;
    var height = $(window).height() - 80;
}else{
    var width = 1528;
    var height = 650;
}
$(function () {
    $("#searchPanel").find("input[type=text]").attr("maxlength","200");
})
//防止冒泡事件
function stopPropagation(e) {
    if (e.stopPropagation)
        e.stopPropagation();
    else
        e.cancelBubble = true;
}

/*url传templates的路径*/
function formateUrl(url){
    return "/dtt/main?url=" + url;
}